package com.ciwong.mobilelib.widget;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

import com.ciwong.mobilelib.R;

/**
 * Created by Administrator on 2017/9/18.
 */

public class ToastTopDialog extends Dialog {

    private  TextView tx_tips;

    private  String mTips;

    public ToastTopDialog(Context context, String tips) {
        super(context, R.style.dialog_network_tips);
        mTips=tips;
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.toast_dialog_tips);

        tx_tips = (TextView) findViewById(R.id.tx_tips);

        tx_tips.setText(mTips);

    }
}
